package com.example.bookshop.repository;


import com.example.bookshop.entity.BaseOrder;
import com.example.bookshop.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderRepository {
    public int addOrder(Order order);//添加订单
    public List<BaseOrder>findAllOrder();//查找所有订单
    public Order findOrderById(Integer id);//通过订单编号查询订单详细信息
    public List<BaseOrder>findOrderByCustomerId(Integer id);//通过买家Id查询订单简略信息
    public List<BaseOrder>findOrderByBusinessId(Integer id);//通过卖家Id查询订单简略信息
    public int updateOrder(Order order);//修改订单信息
    public int deleteOrder(List<Integer> list);//删除一些订单
}
